package com.elong.businesstravel.protocol.login;

import org.apache.http.Header;
import org.json.JSONObject;

import com.elong.businesstravel.entitys.MemberManaged;
import com.elong.businesstravel.protocol.baseresponse.BaseELongJsonHttpResponse;

public class MemberGetManagedResponse extends BaseELongJsonHttpResponse {

	public MemberManaged memberManaged = new MemberManaged();
	
	@Override
	public void onSuccess(int statusCode, Header[] headers,
			JSONObject mainJsonObject) throws Throwable {
		
		JSONObject responseJsonObject = mainJsonObject.optJSONObject("response");
		memberManaged.uscore = responseJsonObject.optString("uscore", "0");
		memberManaged.text = responseJsonObject.optString("text", "");
		memberManaged.validateemail = responseJsonObject.optString("validateemail", "");
		memberManaged.ulevel = responseJsonObject.optString("ulevel", "");
		memberManaged.msg = responseJsonObject.optString("msg", "");
		memberManaged.status = responseJsonObject.optString("status", "");
		memberManaged.companyname = responseJsonObject.optString("companyname", "");
		memberManaged.showmsg = responseJsonObject.optString("showmsg", "");
		memberManaged.ticketid = responseJsonObject.optString("ticketid", "0");
		memberManaged.ticketcash = responseJsonObject.optString("ticketcash", "0");
		
	}

}
